package tk.mystudio.idc.dao.impl;

import org.eclipse.persistence.queries.QueryByExamplePolicy;

import tk.mystudio.dao.impl.BaseDaoImpl;
import tk.mystudio.idc.dao.IdcBusinessDao;
import tk.mystudio.idc.pojo.IdcBusiness;
import tk.mystudio.util.Order;
import tk.mystudio.util.Page;

public class IdcBusinessDaoImpl extends BaseDaoImpl<IdcBusiness> implements
		IdcBusinessDao {
	@Override
	public Page<IdcBusiness> listByPage(Object example, Page<IdcBusiness> page,
			Order[] orders) {
		QueryByExamplePolicy policy = getBasicQBEPolicy();
		policy.addSpecialOperation(String.class, "likeIgnoreCase");
		return executePageQuery(example, policy, null, page, orders);
	}
}
